<template>
  <div key="id">
    <div class="m-b-2">标题内容</div>
    <el-input v-model="text" @update:modelValue="inputHandle" placeholder="请输入标题" />
  </div>
</template>

<script setup lang="ts">
import type { VueComType } from '@/types'
const props = defineProps<{
  configKey: string
  id: string
  status: string
  isShow: boolean
  editCom: VueComType
}>()
const text = ref(props.status)
const updateStatus = inject('updateStatus') as Function
const inputHandle = (val: string) => {
  console.log(val)
  updateStatus(props.configKey, val)
}
</script>

<style scoped></style>
